const ProjectRequest = require("../project/project_request.js");

function listByProduct(productId, callback) {
  const url = "/proxy/list/" + productId + "/product";
  ProjectRequest.getRequest(url, callback);
}

function getProxyAddress(townId, callback){
  const url = "/proxy/address?townId = " + townId;
  ProjectRequest.getRequest(url, callback);
}

/**
 * exports
 */
module.exports = {
  listByProduct: listByProduct,
  getProxyAddress
};